package com.jd.org.domain;

import com.jd.basic.domain.BaseDomain;
import com.jd.sys.domain.Role;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    private String username;
    private String email;
    private String phone;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long parentId;
    private Long logininfoId;
    private Long shopId;
    private String deptName;
    // 员工所属部门
    private Department department;
    private List<Long> roles;
}
